home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-04 | 2.6 KB | 25 lines | [TEXT/PJMM] |
- program ProgressIcon;
-
- var
- getPt: Point;
- typeList: SFTypeList;
- reply: SFReply;
- err: OSErr;
-
- procedure NewBitMap (var theBitMap: BitMap);
- begin
- with theBitMap, bounds do
- begin
- rowBytes := ((right - left + 15) div 16) * 2;
- baseAddr := NewPtr(rowBytes * (bottom - top));
- if MemError <> noErr then
- baseAddr := nil;
- end;
- end;
-
- function AtEOF (fRefNum: Integer): Boolean;
- var
- currPos, eofPos: LongInt;
- begin
- err := GetFPos(fRefNum, currPos);
- err := GetEOF(fRefNum, eofPo